﻿<%@ Page Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true"
    CodeFile="Produt_Edit.aspx.cs" Inherits="management_Produt_Produt_Edit" Title="修改产品" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Css/Main.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <div class="HeaderSing">
        <div class="header_Sub font14px clear">
            <ul>
                <li>产品管理</li>
                <li>产品列表</li>
                <li>修改</li>
            </ul>
        </div>
    </div>
    <div class="container">
        <div class="gridbox">
            <table width="100%" border="1" cellspacing="0" cellpadding="2" bordercolor="#eeeeee"
                style="border-collapse: collapse;">
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th width="20%">
                        产品名称：
                    </th>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="260px" MaxLength="30" />
                        <asp:RequiredFieldValidator ID="rf1" runat="server" ControlToValidate="txtTitle"
                            Display="Dynamic" ErrorMessage="*" />
                    </td>
                    <th rowspan="8">
                        图片：
                    </th>
                    <td rowspan="8">
                        <asp:Image ID="myimg" runat="server" ImageUrl="~/userfiles/temp/default.jpg" BorderWidth="1" />
                        <asp:Image ID="myimg1" runat="server" ImageUrl="~/userfiles/temp/default.jpg" BorderWidth="1" Visible="false"/>
                         <asp:Image ID="myimg2" runat="server" ImageUrl="~/userfiles/temp/default.jpg" BorderWidth="1" Visible="false"/><br />
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:Label ID="lblmsg" runat="server" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        可兑换的金额：
                    </th>
                    <td>
                        <asp:TextBox ID="txtMoney" runat="server" Width="260px" MaxLength="15" Text="0" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        所属分类：
                    </th>
                    <td>
                        <asp:DropDownList ID="dropCategory" runat="server">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="dropCategory"
                            Display="Dynamic" ErrorMessage="请选择分类。" InitialValue="0"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        所需积分：
                    </th>
                    <td>
                        <asp:TextBox ID="txtPrice" runat="server" Width="260px" MaxLength="15" Text="0" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        参与兑换人数：
                    </th>
                    <td>
                        <asp:TextBox ID="txtCanyuUser" runat="server" Width="260px" MaxLength="15" Text="0" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        库存：
                    </th>
                    <td>
                        <asp:TextBox ID="txtKucun" runat="server" Width="260px" MaxLength="15" Text="0" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        首页推荐：
                    </th>
                    <td>
                        <asp:CheckBox ID="ckbRecommend" runat="server" />&nbsp;&nbsp;该产品是否在首页显示？
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        产品排序：
                    </th>
                    <td>
                        <asp:Literal ID="lblProdName" runat="server"></asp:Literal>
                        <asp:Literal ID="lblCategory" runat="server"></asp:Literal>
                        <asp:TextBox ID="txtSortid" runat="server" Width="80px" MaxLength="6" Text="0" onkeyup="value=value.replace(/[^\d]/g,'') "
                            onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSortid"
                            Display="Dynamic" ErrorMessage="请输入数字" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <th>
                        产品介绍：
                    </th>
                    <td colspan="3">
                        <FCKeditorV2:FCKeditor ID="txtContent" Width="99%" Height="300px" runat="server"
                            BasePath="../Web_DllcEditor/" />
                    </td>
                </tr>
                <tr onmouseover="show(this)" onmouseout="noshow(this)">
                    <td colspan="4" align="left" class="Tablefoot">
                       <span>
                <asp:Button ID="btn_submit" runat="server" Text="提交" CssClass="Submit" OnClick="btn_submit_Click" /></span>
            <span>
                <asp:Button ID="btn_cancel" runat="server" Text="返回" CssClass="Submit" OnClick="btn_cancel_Click"
                    CausesValidation="false" /></span>
                    </td>
                </tr>
            </table>
            
        </div>
    </div>
</asp:Content>
